﻿<Window x:Class="CECB.Matrix.PendingMatrixValues_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" 
        Title="PendingMatrixValues_Window"   Width="1020" Height="760"
         Background="#AA000000"
           WindowStartupLocation="CenterScreen" AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">

    <Window.Resources>
        <Style
    x:Key="LinkButton"
    TargetType="Button">
            <Setter
        Property="Template">
                <Setter.Value>
                    <ControlTemplate
                TargetType="Button">
                        <TextBlock
                    TextDecorations="Underline">
                <ContentPresenter /></TextBlock>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter
        Property="Foreground"
        Value="Blue" />
            <Style.Triggers>
                <Trigger
            Property="IsMouseOver"
            Value="true">
                    <Setter
                Property="Foreground"
                Value="Red" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    
    <Grid Margin="0,10,0,10" Width="1020">

        <Rectangle Margin="25,0,52,47" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        
        <StackPanel Orientation="Vertical" Margin="40,10,30,37">
            <StackPanel Orientation="Horizontal" Margin="0,0,0,0" Height="100"  Background="Transparent">
                <StackPanel Orientation="Vertical" Height="auto" Margin="10,0,0,0" Width="527">
                    <Label Foreground="White" FontSize="20"  Content="Following Projects have Duplicate values to be confirmed!" Width="539"></Label>
                    <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                        <Label VerticalAlignment="Top" Content="Project Name" Name="label_projectName" FontSize="15" Foreground="White" Margin="0,0,0,0" Width="auto" Height="34" />
                        <toolkit:AutoCompleteBox IsEnabled="False"  Name="ProjectAutocompleteTextBox"  Width="285.527" Margin="12,0,0,0" Height="35"  ValueMemberPath="proj_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True" FontSize="18" Background="White" Opacity="1" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2"  >
                            <toolkit:AutoCompleteBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=proj_reference}"/>
                                        <TextBlock Text=" - "/>
                                        <TextBlock Text="{Binding Path=proj_name}"/>
                                    </StackPanel>
                                </DataTemplate>
                            </toolkit:AutoCompleteBox.ItemTemplate>
                        </toolkit:AutoCompleteBox>
                    </StackPanel>
                    
                </StackPanel>
                <StackPanel VerticalAlignment="Top" Height="94" Width="340" Orientation="Vertical" Background="#FF907D7D">
                    <StackPanel Orientation="Horizontal">
                        <Label VerticalAlignment="Top" Content="Leopold Projects"  FontSize="12" Foreground="White" Margin="0,0,0,0" Width="175" Height="auto" Background="#FF62060C" />
                        <StackPanel Height="20" Width="2" Background="White"></StackPanel>
                        <Label VerticalAlignment="Top" Content="Simple Projects"   FontSize="12" Foreground="White" Margin="0,0,0,0" Width="163" Height="auto" Background="#FF62060C" />
                    </StackPanel>
                    <StackPanel Width="340" Height="2" Background="#FF62060C"></StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <ListBox x:Name="listBoxProjectsLeo"   ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Height="70" Background="#FF62060C" Width="176" SelectionChanged="listBoxProjectsLeo_SelectionChanged"   GotFocus="listBoxProjectsLeo_GotFocus" BorderThickness="2" BorderBrush="#FF141414">
                            <ListBox.ItemTemplate >
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal" Width="400"  >
                                        <RadioButton  FontSize="14" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                                        <Label    Content="{Binding proj_name}" Foreground="White" ></Label>
                                        

                                    </StackPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                        <ListBox x:Name="listBoxProjectsSim"   ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Height="70" Background="#FF62060C" Width="167" SelectionChanged="listBoxProjectsSim_SelectionChanged" GotFocus="listBoxProjectsSim_GotFocus" BorderThickness="2" BorderBrush="#FF030303">
                            <ListBox.ItemTemplate >
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <RadioButton  FontSize="14" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                                        <Label    Content="{Binding proj_name}" Foreground="White" ></Label>
                                         
                                    </StackPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </StackPanel>
                </StackPanel>
                </StackPanel>
            <GroupBox Width="885" Margin="-40,0,0,0">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="0,5,0,0"  Height="524">
                    <StackPanel Orientation="Vertical" Width="872">
                        <StackPanel Orientation="Horizontal">
                            <Label VerticalAlignment="Top" Content="Impact and Activity"  FontSize="15" Foreground="White" Margin="0,0,0,0" Width="509" Height="34" />
                            <Label VerticalAlignment="Top" Content="Values suggested by consultants"   FontSize="15" Foreground="White" Margin="0,0,0,0" Width="auto" Height="34" />
                        </StackPanel>

                        <StackPanel Orientation="Horizontal" Height="488">
                            <ListBox Name="listBoxAllActImp"  VerticalAlignment="Top"  ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="#FFFFE8A6" Height="462" Width="500" Margin="0,10,0,0" SelectionMode="Single" SelectionChanged="listBoxAllActImp_SelectionChanged" >
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal" Width="500"  Background="AliceBlue">
                                            <StackPanel>
                                                <RadioButton  FontSize="14" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                                            </StackPanel>
                                            <!--<ScrollViewer VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" Width="400">-->

                                            <StackPanel Orientation="Vertical" Width="500">

                                                <Label  Content="{Binding Impacts.impt_name}" Background="#FF7C7676" Foreground="White" FontSize="14" Height="30" Width="500"  Margin="0,0,0,0" />
                                                <Label Content="{Binding Activities.actv_name}" Background="#FFD8DBDB"  Width="500" Height="30"   Margin="0,0,0,0" Foreground="Black"   HorizontalAlignment="Right" FontSize="14" />

                                            </StackPanel>
                                            <!--</ScrollViewer>-->
                                        </StackPanel>

                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>

                            <StackPanel Orientation="Vertical">
                                <ListBox Name="listBoxMembersValuesLeo" VerticalAlignment="Top"  ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="#FFFFE8A6" Height="322" Width="350" Margin="10,10,0,0" SelectionMode="Single">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Vertical" Width="350" Margin="0,0,5,0" Background="AliceBlue">
                                                <StackPanel Orientation="Horizontal" Background="#C7800000">
                                                    <Label Content="{Binding Members.mem_name}" Foreground="White"   FontSize="15" Height="30" Width="auto"  Margin="0,0,0,0" />
                                                    <Label Content="{Binding mtrx_addedDate, StringFormat='{}{0:HH/MM/dd/yyyy}'}" Foreground="White"   FontSize="15" Height="30" Width="auto"  Margin="0,0,0,0" />
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Width="auto">
                                                    <Label Content="Magnitude "/>
                                                    <Label  Content="{Binding mtrx_magnitude}" FontSize="14" Height="30" Width="25"  Margin="0,0,0,0" />
                                                    <Label Content="Importance "/>
                                                    <Label Content="{Binding mtrx_importance}" Height="30" Width="25" Margin="0,0,0,0" Foreground="Black"   HorizontalAlignment="Right" FontSize="14" />
                                                    <RadioButton  FontSize="14" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                                                </StackPanel>

                                            </StackPanel>

                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                <ListBox Name="listBoxMembersValuesSim" Visibility="Collapsed" VerticalAlignment="Top"   ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="Beige" Height="322" Width="350" Margin="10,10,0,0" SelectionMode="Single">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Vertical" Width="350" Margin="0,0,5,0" Background="AliceBlue">
                                                <StackPanel Orientation="Horizontal" Background="#C7800000">
                                                    <Label Content="{Binding Members.mem_name}" Foreground="White"   FontSize="15" Height="30" Width="auto"  Margin="0,0,0,0" />
                                                    <Label Content="{Binding mtrx_addedDate, StringFormat='{}{0:HH/MM/dd/yyyy}'}" Foreground="White"   FontSize="15" Height="30" Width="auto"  Margin="0,0,0,0" />
                                                </StackPanel>
                                                <StackPanel Orientation="Horizontal" Width="auto">
                                                    <Label Content="Importance Value "/>
                                                    <Label  Content="{Binding mtrx_simpleValue}" FontSize="14" Height="30" Width="25"  Margin="0,0,0,0" />
                                                    <RadioButton  FontSize="14" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                                                </StackPanel>

                                            </StackPanel>

                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                                
                                <GroupBox Width="358" Header="Existing values" Foreground="White" Height="auto" HorizontalAlignment="Left">
                                    <StackPanel Orientation="Vertical">
                                        <StackPanel Orientation="Horizontal" Background="#8D0A0A0A">
                                            <Label VerticalAlignment="Top" Content="  Magnitude Value :" FontSize="15" Foreground="White" Margin="0,0,0,0" Width="auto" Height="34" />
                                            <Label VerticalAlignment="Top" Name="LableCurrentMagValues" FontSize="15" Foreground="White" Margin="0,0,0,0" Width="auto" Height="34" />

                                        </StackPanel>
                                        <StackPanel Orientation="Horizontal" Margin="0,5,0,0"  Background="#8D0A0A0A">
                                            <Label VerticalAlignment="Top" Content="  Importance Value :" FontSize="15" Foreground="White" Margin="0,0,0,0" Width="auto" Height="34" />
                                            <Label VerticalAlignment="Top" Name="LableCurrentImpValues" FontSize="15" Foreground="White" Margin="0,0,0,0" Width="auto" Height="34" />

                                        </StackPanel> 
                                        <StackPanel Orientation="Horizontal">
                                            <StackPanel Width="140" Height="2" Background="White"></StackPanel>
                                            <Label Content="Save values" Foreground="White"></Label>
                                            <StackPanel Width="130" Height="2" Background="White"></StackPanel>
                                        </StackPanel>
                                        <Button Background="{x:Null}" BorderBrush="White" Click="SaveButton_Click" Margin="0,-5,0,0" Height="44"   Name="SaveButton" Width="98">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto" />
                                                    <ColumnDefinition Width="*" />
                                                </Grid.ColumnDefinitions>
                                                <Image Grid.Column="0" Height="32" Margin="2" Source="/CECB;component/images/Save.png" Width="32"  />
                                                <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                                                    <TextBlock Margin="0" Padding="0" Foreground="White" Text="Save" TextWrapping="NoWrap" />
                                                </StackPanel>
                                            </Grid>
                                        </Button>
                                    </StackPanel>
                                </GroupBox>
                            </StackPanel>
                        </StackPanel>

                    </StackPanel>
                    <StackPanel.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF5F5F5F" Offset="0.087" />
                            <GradientStop Color="#FF6F6F6F" Offset="1" />
                            <GradientStop Color="#FFADA4A4" Offset="0.587" />
                            <GradientStop Color="#FFADA4A4" Offset="0.366" />
                            <GradientStop Color="#FFE5E5E5" Offset="0.477" />
                        </LinearGradientBrush>
                    </StackPanel.Background>
                </StackPanel>

            </GroupBox>

        </StackPanel>
        

        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,12,60,0">
            <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>

    </Grid>
</Window>
